package com.vdong.interactive.course.entity.mo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "goods")
public class Goods implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(notes = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 商品封面
     */
    @ApiModelProperty(notes = "商品封面")
    @Column(name = "image_url")
    private String imageUrl;

    /**
     * 商品名称
     */
    @ApiModelProperty(notes = "商品名称")
    @Column(name = "goods_name")
    private String goodsName;

    /**
     * 价格
     */
    @ApiModelProperty(notes = "价格")
    private BigDecimal price;

    /**
     * 创建时间
     */
    @ApiModelProperty(notes = "创建时间")
    @Column(name = "create_date")
    private Date createDate;

    /**
     * 修改时间
     */
    @ApiModelProperty(notes = "修改时间")
    @Column(name = "modify_date")
    private Date modifyDate;

    /**
     * 创建者
     */
    @ApiModelProperty(notes = "创建者")
    @Column(name = "create_user")
    private Long createUser;

    /**
     * 修改者
     */
    @ApiModelProperty(notes = "修改者")
    @Column(name = "modify_user")
    private Long modifyUser;

    /**
     * 系统平台编号
     */
    @ApiModelProperty(notes = "系统平台编号")
    @Column(name = "platform_id")
    private Long platformId;

    /**
     * 商品简介
     */
    @ApiModelProperty(notes = "商品简介")
    @Column(name = "goods_introduction")
    private String goodsIntroduction;

    /**
     * 是否删除
     */
    @ApiModelProperty(notes = "是否删除")
    @Column(name = "deleted")
    private Boolean deleted;
}